function selectRights(roleid) {
  var url = "role.x?op=select&role.id=" + roleid;
  var retVal = window.showModalDialog(url,null,"dialogwidth:800px;dialogheight:700px");    
  _obj("id_op").value = "edit";
  if (retVal !== undefined && retVal !== '')
    _obj("editFrm").submit();
}

function submitRights() {
  _obj("id_op").value = "config";
  _obj("cfgFrm").submit();
}

function addRole() {
  _obj("id_op").value = "edit";
  _obj("listFrm").submit();
}

function delRole() {
  if (confirm('是否要删除选中角色?')) {
    commit('listFrm',[['id_op','delete']]);
  }
}